﻿<%@ Page Title="彩票米米网首页" Language="C#" MasterPageFile="~/APP_Master/MasterPage_Default.master"
    AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Src="APP_Controls/DBanner.ascx" TagName="DBanner" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="d_content">
        <div class="d_left">
            <!--Banner-->
            <div class="d_banner">
                <uc1:DBanner ID="DBanner1" runat="server" />
            </div>
            <!--Banner-->
            <!--KK-->
            <div class="kk_gg">
                <div class="kk_gg_t"></div>
                <div class="kk_gg_box">
                    <div class="kaijiang">
                        <h2 class="kaijiang_t">开奖公告</h2>
                        <div class="kaijiang_n">
                            <span class="kj_n">双色球 </span>
                            <span class="kj_d">第 <b><%=SSQLottery!=null?SSQLottery.LotteryQS:"0000000"%> </b>期</span>
                            <span class="kj_dd"><%=SSQLottery!=null?SSQLottery.openTime.ToString("yyyy-MM-dd"):DateTime.Now.ToString("yyyy-MM-dd")%></span>
                        </div>
                        <div class="kaijiang_c">
                            <ul class="kaijiang_c_q">
                                <%if (SSQList != null)
                                    {
                                        foreach (string str in SSQList)
                                        {%>
                                <li><%=str %></li>
                                <%}
                                    }%>
                                <li class="kl_b"><%=SSQblue %></li>
                            </ul>
                            <p class="kj_tz"><a href="double_betting.aspx" target="view_blank">立即投注</a></p>
                        </div>
                        <div class="kaijiang_n">
                            <span class="kj_n">大乐透 </span>
                            <span class="kj_d">第 <b><%=DLTLottery != null ? DLTLottery.LotteryQS : "0000000"%> </b>期</span>
                            <span class="kj_dd"><%=DLTLottery != null ? DLTLottery.openTime.ToString("yyyy-MM-dd") : DateTime.Now.ToString("yyyy-MM-dd")%></span>
                        </div>
                        <div class="kaijiang_c">
                            <ul class="kaijiang_c_q">
                                <%if (DLTList != null)
                                    {
                                        foreach (string str in DLTList)
                                        {%>
                                <li><%=str %></li>
                                <%}
                                    foreach (string str in DLTblue)
                                    {%>
                                <li class="kl_b"><%=str %></li>
                                <%}
                                    }%>
                            </ul>
                            <p class="kj_tz"><a href="dlt_betting.aspx" target="view_blank">立即投注</a></p>
                        </div>
                        <div class="kaijiang_n">
                            <span class="kj_n">福彩3D </span>
                            <span class="kj_d">第 <b><%=FCLottery != null ? FCLottery.LotteryQS : "0000000"%>  </b>期</span>
                            <span class="kj_dd"><%=FCLottery != null ? FCLottery.openTime.ToString("yyyy-MM-dd") : DateTime.Now.ToString("yyyy-MM-dd")%></span>
                        </div>
                        <div class="kaijiang_c">
                            <ul class="kaijiang_c_q">
                                <%if (FCList != null)
                                    {
                                        foreach (string str in FCList)
                                        {%>
                                <li><%=str %></li>
                                <%}
                                    }%>
                            </ul>
                            <p class="kj_tz"><a href="3d_1d.aspx" target="view_blank">立即投注</a></p>
                        </div>
                    </div>
                    <div class="kj_w134">
                        <div class="kj_t">
                            <img src="images/d_icon08.gif" />
                            <p>足彩</p>
                        </div>
                        <ul class="kj_ul">
                            <li><a href="">胜负彩</a></li>
                            <li><a href="">进球彩</a></li>
                            <li><a href="">任选九</a></li>
                            <li><a href="">半全场</a></li>
                        </ul>
                        <div class="kj_t kj_boder">
                            <img src="images/d_icon11.gif" />
                            <p>北单</p>
                        </div>
                        <ul class="kj_ul">
                            <li><a href="">胜平负</a></li>
                            <li><a href="">进球数</a></li>
                            <li><a href="">胜负过关</a></li>
                            <li><a href="">比分</a></li>
                            <li><a href="">半全场</a></li>
                            <li><a href="">上下单双</a></li>
                        </ul>
                    </div>
                    <!--2-->
                    <div class="kj_w162">
                        <div class="kj_t">
                            <img src="images/d_icon09.gif" />
                            <p>竞足</p>
                        </div>
                        <ul class="kj_ul">
                            <li><a href="">胜平负</a></li>
                            <li><span><a href="">单关投注</a></span></li>
                            <li><a href="">比分</a></li>
                            <li><a href="">混合串</a></li>
                            <li><a href="">二选一</a></li>
                            <li><a href="">一场制胜</a></li>
                            <li><a href="">进球数</a></li>
                            <li><a href="">半全场</a></li>
                        </ul>
                        <div class="kj_t kj_boder">
                            <img src="images/d_icon12.gif" />
                            <p>快频</p>
                        </div>
                        <ul class="kj_ul">
                            <li><a href="">快三</a></li>
                            <li><a href="">幸运赛车</a></li>
                            <li><a href="">快乐扑克</a></li>
                            <li><a href="">新快三</a></li>
                            <li><a href="">11运夺金</a></li>
                            <li><a href="">新11选5</a></li>
                            <li><a href="">11选5</a></li>
                            <li><a href="">老时时彩</a></li>
                        </ul>
                    </div>
                    <!--3-->
                    <div class="kj_w162_r">
                        <div class="kj_t">
                            <img src="images/d_icon10.gif" />
                            <p>竞篮</p>
                        </div>
                        <ul class="kj_ul">
                            <li><a href="">让分胜负</a></li>
                            <li><span><a href="">单关投注</a></span></li>
                            <li><a href="">大小分</a></li>
                            <li><a href="">混合串</a></li>
                            <li><a href="">胜负</a></li>
                            <li><a href="">胜分差</a></li>
                        </ul>
                    </div>
                    <!--4-->
                    <div class="kj_w79">
                        <div class="kj_t kj_boder">
                            <img src="images/d_icon13.gif" />
                            <p>福彩</p>
                        </div>
                        <ul class="kj_ul2">
                            <li><a href="">双色球</a></li>
                            <li><a href="">七乐彩</a></li>
                            <li><a href="">福彩3D</a></li>
                        </ul>
                    </div>
                    <!--5-->
                    <div class="kj_w80">
                        <div class="kj_t kj_boder">
                            <img src="images/d_icon14.gif" />
                            <p>体彩</p>
                        </div>
                        <ul class="kj_ul2">
                            <li><a href="">大乐透</a></li>
                            <li><a href="">七星彩</a></li>
                            <li><a href="">排列三</a></li>
                            <li><a href="">排列五</a></li>
                        </ul>
                    </div>
                    <!--6-->
                </div>
            </div>
            <!--KK-->
            <!--Data-->
            <div class="d_data">
                <div class="d_data_t">
                    <h2>数据中心</h2>
                    <span><a href="movements.aspx" target="view_blank">更多&gt;&gt;</a></span>
                </div>
                <ul class="d_data_con">
                    <li><a href="shuangse.aspx" target="view_blank">双色球走势</a></li>
                    <li><a href="" target="view_blank">大乐透走势</a></li>
                    <li><a href="3dzs.aspx" target="view_blank">福彩3D走势</a></li>
                    <li><a href="" target="view_blank">排列3走势</a></li>
                    <li><a href="" target="view_blank">七乐彩走势</a></li>
                    <li><a href="" target="view_blank">排列5走势</a></li>
                    <li><a href="" target="view_blank">双色球走势</a></li>
                    <li><a href="" target="view_blank">大乐透走势</a></li>
                    <li><a href="" target="view_blank">福彩3D走势</a></li>
                    <li><a href="" target="view_blank">排列3走势</a></li>
                    <li><a href="" target="view_blank">七乐彩走势</a></li>
                    <li><a href="" target="view_blank">排列5走势</a></li>
                    <li><a href="" target="view_blank">双色球走势</a></li>
                    <li><a href="" target="view_blank">大乐透走势</a></li>
                    <li><a href="" target="view_blank">福彩3D走势</a></li>
                    <li><a href="" target="view_blank">排列3走势</a></li>
                    <li><a href="" target="view_blank">七乐彩走势</a></li>
                    <li><a href="" target="view_blank">排列5走势</a></li>
                    <li><a href="" target="view_blank">双色球走势</a></li>
                    <li><a href="" target="view_blank">大乐透走势</a></li>
                    <li><a href="" target="view_blank">福彩3D走势</a></li>
                    <li><a href="" target="view_blank">排列3走势</a></li>
                </ul>
            </div>
            <!--Data-->
            <!--IndexSubNav-->
            <ul class="d_index_subnav">
                <li><a href="zxgl.aspx">
                    <img src="images/d_icon01.png" />在线过滤</a></li>
                <li><a href="Meitiyuce_ssq.aspx">
                    <img src="images/d_icon02.png" />媒体预测</a></li>
                <li><a href="jjjs_ssq_zigou.aspx">
                    <img src="images/d_icon03.png" />奖金计算器</a></li>
                <li><a href="double_ball.aspx">
                    <img src="images/d_icon04.png" />开奖对比</a></li>
                <li><a href="">
                    <img src="images/d_icon05.png" />比分直播</a></li>
                <li><a href="">
                    <img src="images/d_icon06.png" />竞彩过滤</a></li>
            </ul>
            <!--IndexSubNav-->
        </div>
        <div class="d_right">
            <!--Login-->
            <%if (islogin == "0")
                { %>
            <div class="d_login_box">
                <h2>(∩_∩) 欢迎您来到彩票米米！</h2>
                <div class="d_login">
                    <div id="box1"><a href="login.aspx" class="01">登录</a></div>
                </div>
                <div class="d_reg">
                    <div id="box2"><a href="reg.aspx" class="02">免费注册</a></div>
                </div>
                <p class="d_login_infor">累计中奖：<%=jiangjin%></p>
                <p class="d_ewm">
                    <img src="images/ewm.gif" />
                </p>
                <p class="d_n">手机购彩</p>
                <div class="d_app">
                    <img src="images/icon00.gif" />iphone
                </div>
                <div class="d_app">
                    <img src="images/icon00.gif" />Android
                </div>
            </div>
            <%}
                else
                { %>
            <div class="d_login_box">
                <div style="height: 84px;">
                    <div style="padding: 5px 27px 8px 27px;">

                        <div style="width: 44px; height: 44px; border-radius: 50%; float: left; overflow: hidden;">
                            <img src="images/girl.jpg" />
                        </div>
                        <span style="width: 158px; float: right; font-size: 14px; padding: 10px 0 0 0;">下午好,<%=name %></span>
                        <div style="clear: both"></div>
                    </div>
                    <div style="text-align: center; font-size: 12px;">
                        账户余额:<span style="color: #e69b23"> ***</span> <a href="/per_accout.aspx?n=3" style="padding: 0 6px;">查看</a><a href="/per_will_deposit.aspx?p=1" style="color: #21B5FF; padding: 0 10px;">充值</a><a href="/per_prepaid_records.aspx?p=3" style="color: #21B5FF">申请退款</a>
                    </div>

                </div>
                <p class="d_login_infor">累计中奖：<%=jiangjin%></p>
                <p class="d_ewm">
                    <img src="images/ewm.gif" />
                </p>
                <p class="d_n">手机购彩</p>
                <div class="d_app">
                    <img src="images/icon00.gif" />iphone
                </div>
                <div class="d_app">
                    <img src="images/icon00.gif" />Android
                </div>

            </div>

            <%}  %>
            <!--Login-->
            <!--PaiHang-->
            <div class="d_r_t">
                <h2>中彩排行</h2>
                <p>本站累计中奖<span><%=jiangjin2 %> </span>亿元</p>
            </div>
            <ul class="d_paihang">
                <%if (userAccount != null && userAccount.Count > 0)
                    {
                        for (int i = 0; i < (userAccount.Count > 12 ? 12 : userAccount.Count); i++)
                        {
                %>
                <li>
                    <b <%if (i < 3)
                        { %>class="yellowbg"
                        <%}
                        else
                        { %>
                        class="p_n" <%} %>><%=i+1 %></b>
                    <p class="p_n"><%=SelectName(userAccount[i].user_id)%></p>
                    <%--   <p class="p_date"><%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) % 100000000 / 10000,2)%> 万元</p>--%>
                    <p class="p_date">
                        <%if (Convert.ToDecimal(userAccount[i].winTotal) > 100000000)//亿
                            {%>
                        <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) / 100000000 ,2)%> 亿元
                                       <%}
                                           else
                                           {%>
                        <%if (Convert.ToDecimal(userAccount[i].winTotal) > 10000)
                            {%>
                        <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal) /10000 ,2)%> 万元
                                               <%}
                                                   else
                                                   {%>
                        <%= Math.Round(Convert.ToDecimal(userAccount[i].winTotal),2)%> 元
                                               <%}
                                                   }
                                               %>
                    </p>
                </li>
                <%}
                    }%>
            </ul>
            <!--PaiHang-->
            <!--TuiJian-->
            <div class="d_r_t d_padding">
                <h2>推荐方案</h2>
                <b><a href="ForecastPost_List.aspx" target="view_blank">更多&gt;&gt;</a></b>
            </div>
            <ul class="d_tuijian">
                <%if (tzlist != null && tzlist.Count > 0)
                    { %>
                <%for (int k = 0; k < tzlist.Count; k++)
                    {%>
                <li><a href="ForecastPostInfo.aspx?id=<%=tzlist[k].id %>"><%=tzlist[k].Title.Length > 16 ? tzlist[k].Title.Substring(0, 16)+"..." : tzlist[k].Title %></a></li>
                <%--<li><a href="ForecastPostInfo.aspx?id=<%=tzlist[k].id%>&type=7"><%=tzlist[k].Title%></a></li>--%>
                <%}
                    }%>
            </ul>
            <!--TuiJian-->
        </div>
    </div>
</asp:Content>
